<?php
/**
* @version 1.0.0
* @package RSSearch! 1.0.0
* @copyright (C) 2011 www.rsjoomla.com
* @license GPL, http://www.gnu.org/copyleft/gpl.html
*/
defined( '_JEXEC' ) or die('Restricted access');
?>
<form action="<?php echo JURI::base();?>index.php?option=com_rssearch&view=results&module_id=<?php echo $this->escape($this->module_id);?>&search=<?php echo $this->escape($this->search);?>&cmdSearch=Search" method="post" accept-charset="utf-8">
<h2 class="componentheading"><?php echo JText::sprintf('RSF_SEARCH_RESULTS_FOR', $this->escape($this->search)); ?></h2>
<?php
if(count($this->results) != 0){
	foreach($this->results as $results){
		?>
			<div class="rssearch_src_row contentpaneopen">
				<h2 class="contentheading"><a class="readon" href="<?php echo $results->link;?>"><?php echo $this->escape($results->title);?></a></h2>
				<div class="article-content"><?php echo str_replace($this->search, '<strong style="color:red;">'.$this->search.'</strong>', rssearchController::cutText($results->text, $this->nr_words))?></div>
				<a class="readon" href="<?php echo $results->link;?>"><?php echo JText::_('RS_READ_MORE')?></a>
			</div>
			<span class="article_separator">&nbsp;</span>
<?php } ?>
<div class="rssearch-pagination">
	<div class="rsfi_pageslinks">
		<?php echo $this->pagination->getPagesLinks(); ?>
		<?php echo $this->pagination->getLimitBox(); ?>
	</div>
	<p class="rsfi_pagescounter">
		<?php echo $this->pagination->getPagesCounter(); ?>
	</p>
</div>
<?php
} else {
?>
	<p><?php echo JText::_('NO_RESULTS');?></p>
<?php
}
?>
</form>